From 6dd2073f31faf9e620a7eb4ed1c81b3c3e136d13 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sat, 19 Apr 2008 12:11:54 +0000 Subject: [PATCH] stmsdf: Fix ..printf parameters for MSVC. Before we got always a altitude of ZERO. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3196 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/stmsdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/stmsdf.c b/gpsbabel/stmsdf.c index 76c7c3edf..ac69fd232 100644 --- a/gpsbabel/stmsdf.c +++ b/gpsbabel/stmsdf.c @@ -605,7 +605,7 @@ static void track_disp_custom_cb(const waypoint *wpt) { if (wpt->creation_time && (wpt->altitude != unknown_alt)) { - gbfprintf(fout, "%lu,%.f\n", wpt->creation_time - start_time, wpt->altitude); + gbfprintf(fout, "%d,%.f\n", (int)(wpt->creation_time - start_time), wpt->altitude); } } -- 2.30.2